/* Structure with basic information for a song.
 *
 * A MediaInfo object is a convenience structure for obtaining information
 * about the currently playing song or a playlist entry.
 *
 * A UI wishing to keep a reference of a MediaInfo object should use
 * blah = addref to store it and blah->unref() when done.
 * (Only needed to store info for ids not on the playlist.)
 */

class MediaInfo
    {
  public:
    MediaInfo(int id);
//    ~MediaInfo();

    void unref();
    MediaInfo * addref();

    unsigned int id;
    unsigned int duration;

    string artist;
    string album;
    string title;
    string comment;
    string url;

    string picture_front;
//    unsigned char *picture_data;
//    unsigned int picture_len;
//    void clear_picture();

  protected:
    int ref_count;
    };
